<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
<head>
    <meta charset="utf-8" />
    <title>祈贝健康--后台管理系统</title>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
    <meta content="" name="description" />
    <meta content="" name="author" />

    <!-- ================== BEGIN BASE CSS STYLE ================== -->
    <link href="./Public/Admin/assets/plugins/jquery-ui/themes/base/minified/jquery-ui.min.css" rel="stylesheet" />
    <link href="./Public/Admin/assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <link href="./Public/Admin/assets/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
    <link href="./Public/Admin/assets/css/animate.min.css" rel="stylesheet" />
    <link href="./Public/Admin/assets/css/style.min.css" rel="stylesheet" />
    <link href="./Public/Admin/assets/css/style-responsive.min.css" rel="stylesheet" />
    <link href="./Public/Admin/assets/css/theme/default.css" rel="stylesheet" id="theme" />
    <!-- ================== END BASE CSS STYLE ================== -->

    <!-- ================== BEGIN PAGE LEVEL STYLE ================== -->
    <link href="./Public/Admin/assets/plugins/DataTables/css/data-table.css" rel="stylesheet" />
    <!-- ================== END PAGE LEVEL STYLE ================== -->

    <!-- ================== BEGIN BASE JS ================== -->
    <script src="./Public/Admin/assets/plugins/pace/pace.min.js"></script>
    <!-- ================== END BASE JS ================== -->
</head>
<body>
<php>include './Public/Admin/header.html'; </php>



<!-- begin #content -->
<div id="content" class="content">
    <!-- begin breadcrumb -->
    <ol class="breadcrumb pull-right">
        <li><a href="javascript:;">首页</a></li>
        <li><a href="javascript:;">用户管理</a></li>
        <li class="active">管理列表</li>

    </ol>
    <!--添加-->
    <div class="col-sm-4 col-xs-2 pull-right">
        <a data-toggle="modal"  href="index.php?m=Admin&c=Manager&a=add"
           class="btn btn-success btn-sm pull-right header-btn"><i
                class="fa fa-circle-arrow-up fa-lg"></i>添加后台用户</a>
    </div>
    <!-- end breadcrumb -->
    <!-- begin page-header -->
    <h1 class="page-header">后台用户管理 <small>管理列表</small></h1>
    <!-- end page-header -->

    <!-- begin row -->
    <div class="row">
        <!-- begin col-12 -->
        <div class="col-md-12">
            <!-- begin panel -->
            <div class="panel panel-inverse">
                <div class="panel-heading">
                    <div class="panel-heading-btn">
                        <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-default" data-click="panel-expand"><i class="fa fa-expand"></i></a>
                        <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-success" data-click="panel-reload"><i class="fa fa-repeat"></i></a>
                        <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-warning" data-click="panel-collapse"><i class="fa fa-minus"></i></a>
                        <a href="javascript:;" class="btn btn-xs btn-icon btn-circle btn-danger" data-click="panel-remove"><i class="fa fa-times"></i></a>
                    </div>
                    <h4 class="panel-title">后台用户信息</h4>
                </div>
                <div class="panel-body">
                    <div class="row">
                        <div class="col-sm-3">
                            <input type="text" id="txtsSearch" class="form-control" placeholder="请输入关键字" size="8" maxlength="50"/>
                        </div>
                        <div class="col-sm-3">
                            <a href="javascript:;" class="btn btn-primary btn-md" onclick="return doSomeAction()">执行</a>
                        </div>
                    </div>
                    <div class="table-responsive">

                        <table id="data-table" class="table table-striped table-bordered">
                            <thead>
                            <tr>

                                <th>用户名</th>
                                <th>密码</th>
                                <th>角色</th>
                                <th>真实名字</th>
                                <th>地址</th>
                                <th>商铺名称</th>
                                <th>余额</th>
                                <th>提现金额</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody id="tbodylist">
                            <!-- <tr>
                                    <td>1</td>
                                    <td>IE</td>
                                    <td>13352646464</td>
                                    <td>hr@qw.com</td>
                                    <td>15</td>
                                    <td>
                                        <a href="#" class="btn btn-large btn-primary btn-xs">编辑</a>
                                        <a href="#" class="btn btn-large btn-primary btn-xs">删除</a>
                                    </td>
                                </tr>-->


                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <!-- end panel -->
        </div>
        <!-- end col-12 -->
    </div>
    <!-- end row -->
</div>
<!-- end #content -->


<!-- begin scroll to top btn -->
<a href="javascript:;" class="btn btn-icon btn-circle btn-success btn-scroll-to-top fade" data-click="scroll-top"><i class="fa fa-angle-up"></i></a>
<!-- end scroll to top btn -->
</div>
<!-- end page container -->

<!-- ================== BEGIN BASE JS ================== -->
<script src="./Public/Admin/assets/plugins/jquery/jquery-1.9.1.min.js"></script>
<script src="./Public/Admin/assets/plugins/jquery/jquery-migrate-1.1.0.min.js"></script>
<script src="./Public/Admin/assets/plugins/jquery-ui/ui/minified/jquery-ui.min.js"></script>
<script src="./Public/Admin/assets/plugins/bootstrap/js/bootstrap.min.js"></script>
<!--[if lt IE 9]>
<script src="./Public/Admin/assets/crossbrowserjs/html5shiv.js"></script>
<script src="./Public/Admin/assets/crossbrowserjs/respond.min.js"></script>
<script src="./Public/Admin/assets/crossbrowserjs/excanvas.min.js"></script>
<![endif]-->
<script src="./Public/Admin/assets/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<!-- ================== END BASE JS ================== -->

<!-- ================== BEGIN PAGE LEVEL JS ================== -->
<script src="./Public/Admin/assets/plugins/DataTables/js/jquery.dataTables.js"></script>
<script src="./Public/Admin/assets/plugins/DataTables/js/dataTables.colVis.js"></script>
<script src="./Public/Admin/assets/js/apps.min.js"></script>
<!-- ================== END PAGE LEVEL JS ================== -->
<script>
    $(document).ready(function() {
        App.init();
        loads();
    });
    function loads(){
            $.getJSON("index.php?m=Admin&c=Manager&a=get_manager_list",function(result){
                if(result!=0){
                    var html='';
                    $.each(result, function(key, val) {
                        html+='<tr>';
                        html+='<td>'+val.username+'</td>';
                        html+='<td>'+val.password+'</td>';
                        html+='<td>'+val.rolename+'</td>';
                        html+='<td>'+val.who+'</td>';
                        html+='<td>'+val.addr+'</td>';
                        html+='<td>'+val.shopname+'</td>';
                        html+='<td>'+val.money+'</td>';
                        html+='<td>'+val.cash+'</td>';
                        html+='<td><a href="index.php?m=Admin&c=Manager&a=update&id='+val.id+'" class="btn btn-large btn-primary btn-xs">编辑</a>&nbsp;<a href="#" onclick="del('+val.id+')" class="btn btn-large btn-primary btn-xs">删除</a></td>';
                        html+='</tr>';
                    });
                    $("#tbodylist").html(html);
                    $('#data-table').DataTable();
                }
        });
    }
    function del(obj){
        if(confirm("你确定要删除？")){
            $.getJSON("index.php?m=Admin&c=Manager&a=del&id="+obj,function(result){
                if(result==1){
                    location.href="index.php?m=Admin&c=Manager&a=lists";
                }
            });
        }
    }
</script>
<script>
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
                (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
            m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

    ga('create', 'UA-53034621-1', 'sean-theme.com');
    ga('send', 'pageview');

</script>


</body>
</html>

